package net.alcuria.ball;

public class Particle {

	static public final int TYPE_SPARKLE = 1;
	static public final int TYPE_SPLASH = 2;
	static public final int TYPE_BREAK = 3;
	static public final int TYPE_DUST = 4;
	static public final int TYPE_POWERUP = 5;
	static public final int TYPE_ICEBREAK = 6;

	public int width;
	public int x;
	public int y;
	Sprite particle;


	public Particle(int width, int height, int x, int y, int type){

		switch (type){
		case TYPE_SPARKLE:
			particle = new Sprite(Assets.sparkle, width, height);
			break;
		case TYPE_SPLASH:
			particle = new Sprite(Assets.splash, width, height);
			break;
		case TYPE_BREAK:
			particle = new Sprite(Assets.crumble, width, height);
			break;
		case TYPE_DUST:
			particle = new Sprite(Assets.dust, width, height);
			break;
		case TYPE_POWERUP:
			particle = new Sprite(Assets.powerupSprite, width, height);
			break;
		case TYPE_ICEBREAK:
			particle = new Sprite(Assets.iceBreak, width, height);
			break;
		}

		this.x = x;
		this.y = y;
	}

	public void update(float deltaTime){

		// update the sprite
		particle.update(deltaTime);

	}



}
